<form action="<?php echo url_for('@sf_guard_signin') ?>" method="post">

  <label>
    <?php echo $form['username']->renderLabelName(); ?>
    <?php echo $form['username']; ?>
  </label>
  <br />

  <label>
    <?php echo $form['password']->renderLabelName(); ?>
    <?php echo $form['password']; ?>
  </label>
  <br />

  <label>
    <?php echo $form['remember']->renderLabelName(); ?>
    <?php echo $form['remember']; ?>
  </label>
  <br />

  <div>
    <input type="submit" value="<?php echo __('Signin', null, 'sf_guard') ?>" />

<?php $routes = $sf_context->getRouting()->getRoutes() ?>
<?php if (isset($routes['sf_guard_forgot_password'])): ?>
    <a href="<?php echo url_for('@sf_guard_forgot_password') ?>"><?php echo __('Forgot your password?', null, 'sf_guard') ?></a>
<?php endif; ?>

<?php if (isset($routes['sf_guard_register'])): ?>
    &nbsp; <a href="<?php echo url_for('@sf_guard_register') ?>"><?php echo __('Want to register?', null, 'sf_guard') ?></a>
<?php endif; ?>
  </div>

</form>